package org.springblade.modules.repair.controller;

import org.springblade.common.utils.autoid.service.TokenService;
import org.springblade.core.tool.api.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/autoid")
public class AutoIdController {

	@Autowired
	TokenService tokenService;

	/**
	 * 获取redis令牌
	 * @return
	 */
	@GetMapping()
	public R<String> createTOken() {
		return R.data(tokenService.createToken());
	}

}
